package com.xywl.escort.view.setting;

import com.xywl.escort.base.BasePresenter;
import com.xywl.escort.base.BaseView;
import com.xywl.escort.bean.BaseResp;
import com.xywl.escort.bean.UpgradeReq;
import com.xywl.escort.bean.UpgradeResp;

public interface SettingsContract {

    interface Presenter extends BasePresenter {
        void takeView(SettingsContract.View view);

        void isSetPayPwd(String userId);

        void upgrade(int updateObject, int versionCode, int type);

        void userExit(String token, String deviceId);
    }

    interface View extends BaseView<Presenter> {
        void hasSetPayPwd();

        void noSetPayPwd();

        void findIsFitPayPwdFailure(String msg);

        void hasUpgrade(UpgradeResp.DataBean dataBean);

        void noUpgrade(String msg, int type);

        void userExitSuccess(BaseResp resp);

        void userExitFailure();
    }
}